package com.wujie.section08;

import java.applet.Applet;
import java.awt.*;

/**
 * Created by wujieliu on 2017/10/24.
 */
public class MyApplet extends Applet {
    String message;

    public void init() {
        message = "Hello World ,I'm alive !";
        repaint();
    }

    public void start() {
        message = "Now I'm starting up...";
        repaint();
    }

    public void stop() {
        message = "Oh,now I'm being stopped";
        repaint();
    }

    public void destroy() {

    }

    public void paint(Graphics g) {
        g.drawString(message, 5, 15);
    }
}
